package com.tikou.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.Toast;

/**
 * Created by Tikou on 2017/11/8.
 * 作者：TianNuo
 * 邮箱：1320917731@qq.com
 * 说明：测试Destroy
 * 参考：
 */

public class TestDestroyActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.e("TestDestroyActivity","onCreate");
        getWindow().getDecorView().postDelayed(new Runnable() {
            @Override
            public void run() {
                Toast.makeText(TestDestroyActivity.this,"哈哈",Toast.LENGTH_LONG).show();
            }
        },3000);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.e("TestDestroyActivity","onDestroy");
    }
}
